package com.auxgroup.smarthome.business.service;

import com.auxgroup.smarthome.business.service.inner.AppVersionInnerService;
import com.auxgroup.smarthome.business.vo.AppVersionVo;
import com.auxgroup.smarthome.syscode.Syscode;
import com.auxgroup.smarthome.utils.PageContent;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.stereotype.Component;

@Component
public class AppVersionInnerServiceFallback implements AppVersionInnerService {

    @Override
    public ApiResponse<AppVersionVo> getCurrentAppVersion() {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse<PageContent<AppVersionVo>> searchAppVersions(Integer page, Integer size, String keywords, String createTimeSlot) {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse create(String version, Integer build, String link, String name, String description) {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse update(String appVersionId, String version, Integer build, String link, String name, String description) {
        return ApiResponse.prompt(Syscode.FAIL);
    }

    @Override
    public ApiResponse delete(String appVersionId) {
        return ApiResponse.prompt(Syscode.FAIL);
    }
}
